<template>
    <!-- <div class="da">

      <div class="box">
        <div class="header">头部</div>
        <div class="meddle">内容</div>
      </div>
      <div class="footer">底部</div>
    </div> -->
    <router-view/>
    <router-view name="footer">
      <router-view></router-view>
            <van-tabbar v-model="active" route>
        <van-tabbar-item icon="home-o" to="/index">首页</van-tabbar-item>
        <van-tabbar-item icon="search" to="/kind">分类</van-tabbar-item>
        <van-tabbar-item icon="friends-o" to="/shop">购物车</van-tabbar-item>
        <van-tabbar-item icon="setting-o" to="/user">我的</van-tabbar-item>
        </van-tabbar>
    </router-view>
</template>
<script setup>
  import { ref } from 'vue';
  const active = ref(0);
</script>
<style lang="scss">

  *{
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .da{
    width: 100%;
    height: 100%;
  }
  html,
  body,
  #app,
  .da{
    flex-direction: column;
    overflow: auto;
  }
  .box{
    flex-direction: column;
    overflow: auto;
    flex: 1;
    display: flex;
  }
  .header{
    overflow: auto;
    display: flex;
  }
  .meddle{
    height: 50px;
  }
  .footer{
    overflow: auto;
    height: 50px;
  }
</style>
